import Mock from 'mockjs'
import houseApi from './mockData/house.ts'
import userApi from './mockData/user.ts';
import request from "../utils/request";

// 原有拦截器
Mock.mock('/house/getData', houseApi.getHouseData())
Mock.mock('/api/auth/userInfo','get', userApi.getUserInfo())
Mock.mock('/api/user/login','get', userApi.userLogin())

// 导出API
export const getHouseData = () => request.get('/house/getData')
export const userLogin = () => request.get('/api/user/login')
export const getUserInfo = () => request.get('/api/auth/userInfo')